import { Constant } from "../../Constant";
import { Main } from "../../Main";
import StateBase from "../StateBase";

export default class ClearFirstRecruitState extends StateBase {
    public begin(preState: number): void {
        super.begin(preState);
       // console.log('ClearFirstRecruitState state--begin', this.getUserData());
        const main = this.getUserData() as Main;
        main.firstRoundRoles.forEach(e => e.node.active = false);
        main.roundTips[0].clear();
        main.mainFsm.goToState(Constant.MainState.FirstRoundRoleEnter, main);

    }
    public end(nextState: number): void {
        super.end(nextState);
     //   console.log('ClearFirstRecruitState state--end');
    }
}
